﻿namespace XYAC.Framework.WohuaMesExtend.IHI.Extensions
{
    public class AppConfig
    {
        public string AccessIHIBaseConnectionString { get; set; }
        public string AccessIHIHisConnectionString { get; set; }
        public String OracleMesConnectionString { get; set; }
        public string LocalDataConnectionString { get; set; }
        public String[] MachineNo { get; set; }
        public String MachineType { get; set; }

        public String BaseUri { get; set; }
        /// <summary>
        /// 检测机台编号
        /// </summary>
        public String DetectionMachineNo { get; set; }
        public bool IsUseCustomizePlanDate { get; set; }
        public DateTime? CustomizePlanDate { get; set; }

        public AppConfig Clone()
        {
            var json = JsonSerializeHelper.SerializeObjectToJson(this);
            var newConfig = JsonSerializeHelper.DeserializeObjectFromJson<AppConfig>(json);
            return newConfig;
        }

    }
}
